// TelnetConstsDef.h: interface for the TelnetConstsDef class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TELNETCONSTSDEF_H__E2BFC2AD_34F7_4018_AE5B_FA4278FEFCC6__INCLUDED_)
#define AFX_TELNETCONSTSDEF_H__E2BFC2AD_34F7_4018_AE5B_FA4278FEFCC6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//option types
// extern const char TERMINAL_TYPE;
// extern const char NAWS;
// extern const char LINEMODE;
// extern const char ECHO;
// extern const char TRANSMIT_BINARY;
// extern const char SUPPRESS_GO_AHEAD;
// extern const char STATUS;
// extern const char TIMING_MARK;
// extern const char EXTENDED_OPTIONS_LIST;
// extern const char UNKNOWN_OPTION;
// extern const char TERMINAL_SPEED;
#define TERMINAL_TYPE char(24)
#define NAWS char(31)
#define LINEMODE char(34)
#define ECHO char(1)
#define TRANSMIT_BINARY char(0)
#define SUPPRESS_GO_AHEAD char(3)
#define STATUS char(5)
#define TIMING_MARK char(6)
#define EXTENDED_OPTIONS_LIST char(255)
#define UNKNOWN_OPTION char(0)
#define TERMINAL_SPEED char(32)
//
// extern const char SEND;
// extern const char IS;

#define SEND char(1)
#define IS char(0)

//commands
// extern const char IAC;
// extern const char WILL;
// extern const char WONT;
// extern const char DO;
// extern const char DONT;
// extern const char SB;
// extern const char GO_AHEAD;
// extern const char ERASE_LINE;
// extern const char ERASE_CHARACTER;
// extern const char ARE_YOU_THERE;
// extern const char ABORT_OUTPUT;
// extern const char INTERRUPT_PROCESS;
// extern const char BREAK;
// extern const char DATA_MARK;
// extern const char NOP;
// extern const char SE;
#define IAC char(255)
#define WILL char(251)
#define WONT char(252)
#define DO char(253)
#define DONT char(254)
#define SB char(250)
#define SE char(240)
#define NOP char(241)
#define GO_AHEAD char(249)
#define ERASE_LINE char(248)
#define ERASE_CHARACTER char(247)
#define ARE_YOU_THERE char(246)
#define ABORT_OUTPUT char(245)
#define INTERRUPT_PROCESS char(244)
#define BREAK char(243)
#define DATA_MARK char(242)

//FINAL_CHAR
#define FINAL_CHAR_MOVELEFT 'D'
#define FINAL_CHAR_MOVEUP 'A'
#define FINAL_CHAR_MOVERIGHT 'C'
#define FINAL_CHAR_MOVEDOWN 'B'
#define FINAL_CHAR_MOVETO 'H'
#define FINAL_CHAR_SAVECARET 's'
#define FINAL_CHAR_UNSAVECARET 'u'
#define FINAL_CHAR_ERASESCREEN 'J'
#define FINAL_CHAR_ERASELINE 'K'
#define FINAL_CHAR_DISPLAYATTRIBUTE 'm'
#define FINAL_CHAR_INSERTLINE 'L'

#define FINAL_CHAR_DELAY 'M'

//
#define ESC '\x1b'

class TelnetConstsDef  
{
public:
	TelnetConstsDef();
	virtual ~TelnetConstsDef();

};

#endif // !defined(AFX_TELNETCONSTSDEF_H__E2BFC2AD_34F7_4018_AE5B_FA4278FEFCC6__INCLUDED_)
